<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hwhp.entity.*"%>
<%@include file="/html/common/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	List positionList = (List)request.getAttribute("positionList");
	
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>职务管理</title>
		<LINK href="<%=basePath%>css/milkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>css/htmilkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>css/dhtmlxgrid.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>js/tree/dtree/dtree.css" type=text/css
			rel=StyleSheet>
		<SCRIPT src="<%=basePath%>js/tree/dtree/dtree.js" type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxcommon.js"
			type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgrid.js" type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgridcell.js"
			type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgrid_start.js"
			type=text/javascript></SCRIPT>
	</head>
	<%
						

	%>
	<body style="MARGIN: 0px;" id="body">
		<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
			align=center border=0>
			<TBODY>
				<TR>
					<TD style="WIDTH:100%; HEIGHT: 12px" background="<%=basePath%>images/commom/index_r4_c9.jpg" colSpan="2"></TD>
				</TR>
				<TR>
					<TD align=top width=100%>
						<TABLE height="100%" cellSpacing=0 cellPadding=0 width="90%"
							border=0 align="center">
							<TBODY>
								<TR>
									<TD height=26>
										<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0
											align="center">
											<TBODY>
												<TR>
													<TD class=linelabel3 vAlign=bottom background=<%=basePath%>images/commom/00_r5_c30.jpg>
														系统管理>>部门管理
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
								</TR>
								<TR>
									<TD class=border2 width="90%" height="100%" valign="top">
										<FORM id=fm1 name=fm1 action="/chis/manager/position!insertPs.action"  method=post>
											<TABLE cellSpacing=10 width="100%">
												<tbody>
													<tr>
														<td class=contenttab2 >
															职务名称：
														</td>
														<td class=contenttab1 >
															<input class=input3  type="text" name="name" id="name">
														</td>
													</tr>
													<tr>
														<td class=contenttab2 >父部门</td>
														<td class=contenttab1 >
															<select name="parentId" id="parentId" >
																<%
																	for(Object o : positionList){
																		SPosition sp = (SPosition)o;
																%>
																	<option value="<%=sp.getPositionId()%>"><%=sp.getName()%></option>
																<%		
																	}
																%>																																
															</select>
														</td>
													</tr>
													<tr>
														<td class=contenttab2 >
															类型：
														</td>
														<td class=contenttab1>
															<input class=input3 type="text" name="type">
														</td>
													</tr>
													<tr>
														<td><input type="reset" value="重置"></td>
														<td><input type="submit" value="提交"></td>
														<td><input type="button" value="返回"></td>
														<td></td>
													</tr>
												</tbody>
											</TABLE>
									   </FORM>
									  </TD>
								  </TR>		
							</TBODY>
					</TABLE>
					</TD>
				</TR>
				</TBODY>
			</TABLE>		
	</body>
	</html>
